import { expr } from "jquery";

export default {
    // 计数器 加号
    addCount (state) {
        state.count ++
    },
    // 计数器 减号
    subCount (state){
        state.count --
    },
    // 路由参数更新
    setGlobalRoute (state, data){
        state.router.routerData = data;
    },
    getGlobalRoute (state){
        return state.router.routerData;
    },
    setGlobalCurrentRoute (state, data){
        state.router.currentRoute = data;
    },
    getGlobalCurrentRoute (state){
        return state.router.currentRoute;
    }
}